home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / hotkey-setup / ibm.hk < prev    next >
Text File  |  2008-10-15  |  4KB  |  99 lines

  1. # IBM/Lenovo ThinkPads
  2. setkeycodes    e05d    $KEY_WAKEUP    # Fn-click (Press & release with no action), observed on R52
  3. #setkeycodes    e063    $KEY_WAKEUP    # Fn-click (Press & release with no action), found on Google and LenovoPads  # Canonical mapping, commented out.
  4.  
  5. # ThinkPad A and S series
  6. #setkeycodes    e032    $KEY_WWW    # Home  # Canonical mapping, commented out.
  7. #setkeycodes    e065    $KEY_SEARCH     # Search  # Canonical mapping, commented out.
  8. #setkeycodes    e06c    $KEY_MAIL    # Mail [also: KEY_EMAIL]  # Canonical mapping, commented out.
  9.  
  10. # ThinkPad A-series
  11. #setkeycodes    e066    $KEY_BOOKMARKS    # Favorites  # Canonical mapping, commented out.
  12. #setkeycodes    e067    $KEY_REFRESH    # Reload  # Canonical mapping, commented out.
  13. #setkeycodes    e068    $KEY_STOP    # Abort  # Canonical mapping, commented out.
  14.  
  15. # ThinkPads from 2002 onwards
  16. #setkeycodes    e069    $KEY_BACK    # Back  # Canonical mapping, commented out.
  17. #setkeycodes    e06a    $KEY_FORWARD    # Forward  # Canonical mapping, commented out.
  18.  
  19. # X41 Tablet series only
  20. # L-to-R:  Scancodes have differing reports.  Are these correct?
  21. #   Power and Power lock (ACPI), Ctrl-Alt-Delete (recessed),
  22. #     Screen Rotate, Tablet Utility, Escape, Enter,
  23. #       Page Up, Page Down
  24. setkeycodes    67    $KEY_COFFEE    # Tablet Ctrl-Alt-Delete
  25. setkeycodes    6c    $KEY_DIRECTION    # Tablet Rotate
  26. setkeycodes    68    $KEY_SETUP    # Tablet Utility Menu
  27. setkeycodes    6b    $KEY_ESC    # Tablet Escape
  28. setkeycodes    69    $KEY_ENTER    # Tablet Enter
  29. setkeycodes    6d    $KEY_PAGEUP    # Tablet Up
  30. setkeycodes    6e    $KEY_PAGEDOWN    # Tablet Down
  31. setkeycodes    6f    $KEY_RIGHT    # Tablet Right
  32. setkeycodes    71    $KEY_LEFT    # Tablet Left
  33.  
  34. # New Lenovo *60* Series
  35.                     # Fn (e063)
  36.                     # Fn-PrtSc    SysRq (3854)
  37.                     # Fn-ScrLk    NumLk (45)
  38.                     # Fn-Pause    Break (e11d45)
  39.                     # Fn-Up     Media Stop (e024)
  40.                     # Fn-Down    Media PlayPause (e022)
  41.                     # Fn-Left    Media Previous (e019)
  42.                     # Fn-Right    Media Right (e010)
  43.  
  44. # Handled via a daemon:
  45. # DONE: Fn + Spacebar -> $KEY_ZOOM  (/dev/nvram, thinkpad-keys)
  46. # DONE: ThinkPad Button -> $KEY_PROG1  (/dev/nvram, thinkpad-keys)
  47. # DONE: ThinkPad R30, R31, R40e (Acer OEMs, no hardware mixer on these):
  48. # DONE: Map Volume Mute/Down/Up to KEY_MUTE, KEY_VOLUMEDOWN, KEY_VOLUMEUP (/dev/nvram, thinkpad-keys)
  49.  
  50. # TODO: Fix Num-Lock, work out what it's going on.
  51. #
  52. # ThinkPads internally map Shift+ScrollLock -> NumLock;  however shift key
  53. # is also down at this point, so the actual code that gets sent is  Shift+NumLock
  54. # and by default X maps  Shift+NumLock to Pointer_Emulation_Enable.
  55. # Shift+Scroll_Lock (0x45) to NumLock (77) and disable X's Pointer_EnableKeys
  56. #
  57. # Works in X with  xmodmap -e 'keycode 77 = Num_Lock'
  58. # Fixed in by removing Pointer_EnableKeys from the default policy in X
  59. # setkeycodes    45    $KEY_KP6      # ???
  60.  
  61. # Derived from Linux drivers/misc/thinkpad_acpi.c mdz@ubuntu.com, 2008-10-13
  62. TP_ACPI_HOTKEYSCAN_FNF1=0
  63. TP_ACPI_HOTKEYSCAN_FNF2=1
  64. TP_ACPI_HOTKEYSCAN_FNF3=2
  65. TP_ACPI_HOTKEYSCAN_FNF4=3
  66. TP_ACPI_HOTKEYSCAN_FNF5=4
  67. TP_ACPI_HOTKEYSCAN_FNF6=5
  68. TP_ACPI_HOTKEYSCAN_FNF7=6
  69. TP_ACPI_HOTKEYSCAN_FNF8=7
  70. TP_ACPI_HOTKEYSCAN_FNF9=8
  71. TP_ACPI_HOTKEYSCAN_FNF10=9
  72. TP_ACPI_HOTKEYSCAN_FNF11=10
  73. TP_ACPI_HOTKEYSCAN_FNF12=11
  74. TP_ACPI_HOTKEYSCAN_FNBACKSPACE=12
  75. TP_ACPI_HOTKEYSCAN_FNINSERT=13
  76. TP_ACPI_HOTKEYSCAN_FNDELETE=14
  77. TP_ACPI_HOTKEYSCAN_FNHOME=15
  78. TP_ACPI_HOTKEYSCAN_FNEND=16
  79. TP_ACPI_HOTKEYSCAN_FNPAGEUP=17
  80. TP_ACPI_HOTKEYSCAN_FNPAGEDOWN=18
  81. TP_ACPI_HOTKEYSCAN_FNSPACE=19
  82. TP_ACPI_HOTKEYSCAN_VOLUMEUP=20
  83. TP_ACPI_HOTKEYSCAN_VOLUMEDOWN=21
  84. TP_ACPI_HOTKEYSCAN_MUTE=22
  85. TP_ACPI_HOTKEYSCAN_THINKPAD=23
  86. TP_ACPI_HKEY_DISPSWTCH_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNF7))
  87. TP_ACPI_HKEY_DISPXPAND_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNF8))
  88. TP_ACPI_HKEY_HIBERNATE_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNF12))
  89. TP_ACPI_HKEY_BRGHTUP_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNHOME))
  90. TP_ACPI_HKEY_BRGHTDWN_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNEND))
  91. TP_ACPI_HKEY_THNKLGHT_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNPAGEUP))
  92. TP_ACPI_HKEY_ZOOM_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_FNSPACE))
  93. TP_ACPI_HKEY_VOLUP_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_VOLUMEUP))
  94. TP_ACPI_HKEY_VOLDWN_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_VOLUMEDOWN))
  95. TP_ACPI_HKEY_MUTE_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_MUTE))
  96. TP_ACPI_HKEY_THINKPAD_MASK=$((1 << $TP_ACPI_HOTKEYSCAN_THINKPAD))
  97. TP_NVRAM_HKEY_GROUP_BRIGHTNESS=$(($TP_ACPI_HKEY_BRGHTUP_MASK|$TP_ACPI_HKEY_BRGHTDWN_MASK))
  98. TP_NVRAM_HKEY_GROUP_VOLUME=$(($TP_ACPI_HKEY_VOLUP_MASK|TP_ACPI_HKEY_VOLDWN_MASK|TP_ACPI_HKEY_MUTE_MASK))
  99.